﻿using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Text;

namespace ModelDto
{
    /// <summary>
    /// 系统配置文件
    /// </summary>
    public class SystemAppSettings : IOptions<SystemAppSettings>
    {
        public SystemAppSettings Value => this;

        /// <summary>
        /// 数据库连接字符串 写 单库
        /// </summary>
        public string ConnectStrWrite { get; set; }
        /// <summary>
        /// 数据库连接字符串 读 可支持多个数据库 ※ 隔开 打不出这个字符 复制粘贴
        /// </summary>
        public string ConnectStrReads { get; set; }

        public string BPMConnectStr { get; set; }


        /// <summary>
        /// 1 使用redis  0 不使用redis【不使用redis 就不要用redis的接口了】
        /// </summary>
        public string IsRedis { get; set; }
        /// <summary>
        /// redis 连接
        /// </summary>
        public string RedisConn { get; set; }
        /// <summary>
        /// redis 连接 数据库下标 int 
        /// </summary>
        public string RedisDatabaseIndex { get; set; }

        /// <summary>
        /// MQ IP
        /// </summary>
        public string RabbitMQ_HostName { get; set; }
        /// <summary>
        /// MQ PORT
        /// </summary>
        public string RabbitMQ_Port { get; set; }
        /// <summary>
        /// MQ USERNAME
        /// </summary>
        public string RabbitMQ_UserName { get; set; }
        /// <summary>
        /// MQ PWD
        /// </summary>
        public string RabbitMQ_Password { get; set; }

        public string ApiInit { get; set; }
        public string ApiPublish { get; set; }
    }
}
